package cn.doit.scala.day01.block

import java.util

/**
 * @DATE 2021/12/24/11:54
 * @Author MDK
 * @Version 2021.2.2
 * */
object C02_For07 {
  def main(args: Array[String]): Unit = {
  val arr = Array[Int](8,9,2,5,7,0);
    val list = new util.ArrayList[Int]()
    for (elem <- arr if elem% 2 == 0) {
      println(elem * 10)
      list.add(elem)
    }
    println(list)
  }
}
